package com.uflower.search.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchParams {
    //搜索关键字
    private String keyword;
    //分类ID
    private Long catalog3Id;
    //是否有库存
    private Integer hasStock = 1;
    /**
     *价格区间
     * lte_gre
     * _gre
     * lte_
     */
    private String skuPrice;
    //多选的品牌ID
    private List<Long> brandId;
    /**
     * 按照属性进行查找
     * 属性名_属性值1：属性值2
     * 尺寸_15:16:17
     * 内存_8:16:32
     */
    private List<String> attrs;

    //当前页码
    private Integer pageNum = 1;
    /**
     * 排序规则
     *  sort=saleCount_asc/desc
     *  sort=skuPrice_asc/desc
     *  sort=hotScore_asc/desc
     */
    private String sort;
}
